package es.cazadoresmadridejos.model;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity(name="Male")
@Table(name="macho_perdiz")
public class Male extends BaseEntity{

	private Reason reason;
	private Partner partner;
	private BigDecimal payment;
	
	@ManyToOne(optional=false)
	@JoinColumn(name="temporada")			
	public Reason getReason() {
		return reason;
	}
	public void setReason(Reason reason) {
		this.reason = reason;
	}
	@ManyToOne(optional=false)
	@JoinColumn(name="usuario")		
	public Partner getPartner() {
		return partner;
	}
	public void setPartner(Partner partner) {
		this.partner = partner;
	}
	@Column(name="pagado")
	public BigDecimal getPayment() {
		return payment;
	}
	public void setPayment(BigDecimal payment) {
		this.payment = payment;
	}
	
}
